package com.yazi.mxz.gather.entity.http;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;


/**
 * 供销超市商品详情响应结果(属性部分)
 * <br/>http://www.yjgxcs.com/product-136.html，结构样板<br/>
 * <br/>&lt;table>
 * <br/>　&lt;tr>
 * <br/>　　&lt;td>
 * <br/>　　&lt;div>
 * <br/>　　　&lt;div bigpicsrc="http://www.yjgxcs.com/images/goods/20120630/3dd5627a5e67bee9.jpg">
 * <br/>　　　　&lt;a>&lt;img src="http://www.yjgxcs.com/images/goods/20120630/8becf0de4238b011.jpg" />&lt;/a>
 * <br/>　　　&lt;/div>
 * <br/>　　&lt;/div>
 * <br/>　　&lt;/td>
 * <br/>　　&lt;td>
 * <br/>　　&lt;form>
 * <br/>　　　&lt;h1>出前一丁杯面海鲜味72g&lt;/h1>
 * <br/>　　　&lt;ul>
 * <br/>　　　　&lt;li>&lt;span>商品编号：&lt;/span>10047541&lt;/li>
 * <br/>　　　　&lt;li>&lt;span>商品重量：&lt;/span>&lt;span>72.000&lt;/span>&lt;span>克(g)&lt;/span>&lt;/li>
 * <br/>　　　　&lt;li>&lt;span>货号：&lt;/span>&lt;span>4897878150052&lt;/span>&lt;/li>
 * <br/>　　　　&lt;li>&lt;span>计量单位：&lt;/span>&lt;span>杯&lt;/span>&lt;/li>
 * <br/>　　　　&lt;li>&lt;span>所得积分：&lt;/span>&lt;span>2&lt;/span>&lt;/li>
 * <br/>　　　&lt;/ul>
 * <br/>　　　&lt;ul>
 * <br/>　　　　&lt;li>&lt;span>市场价：&lt;/span>&lt;i> ￥7.9 &lt;/i>
 * <br/>　　　　&lt;/li>
 * <br/>　　　　&lt;li>&lt;span>销售价：&lt;/span> &lt;span> ￥7.7 &lt;/span>
 * <br/>　　　　&lt;/li>
 * <br/>　　　&lt;/ul>
 * <br/>　　&lt;/form>
 * <br/>　　&lt;/td>
 * <br/>　&lt;/tr>
 * <br/>&lt;/table>
 * 
 * @author mo_yq5
 * @date 2015-8-11
 */
@JsonRootName("table")
public class YjgxcsResBody4Detail {
	
	Tr tr;
	
	public static class Tr {
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="td")
		List<Td> tds;

		public List<Td> getTds() {
			return tds;
		}

		public void setTds(List<Td> tds) {
			this.tds = tds;
		}
	}
	
	public static class Td {
		Div div;
		Form form;
		public Div getDiv() {
			return div;
		}
		public void setDiv(Div div) {
			this.div = div;
		}
		public Form getForm() {
			return form;
		}
		public void setForm(Form form) {
			this.form = form;
		}
	}
	public static class Form {
		H1 h1;
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="ul")
		List<Ul> uls;
		public H1 getH1() {
			return h1;
		}
		public void setH1(H1 h1) {
			this.h1 = h1;
		}
		public List<Ul> getUls() {
			return uls;
		}
		public void setUls(List<Ul> uls) {
			this.uls = uls;
		}
	}
	public static class Ul {
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="li")
		List<Li> lis;

		public List<Li> getLis() {
			return lis;
		}

		public void setLis(List<Li> lis) {
			this.lis = lis;
		}
	}
	public static class Li {
		@JacksonXmlElementWrapper(useWrapping = false)
		@JacksonXmlProperty(localName="span")
		List<Span> spans;
		I  i;
		public List<Span> getSpans() {
			return spans;
		}
		public void setSpans(List<Span> spans) {
			this.spans = spans;
		}
		public I getI() {
			return i;
		}
		public void setI(I i) {
			this.i = i;
		}
	}
	public static class I {
		@JacksonXmlText
		String text;// 市场价

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}
	public static class Span {
		@JacksonXmlText
		String text;// 各属性

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}
	public static class H1 {
		@JacksonXmlText
		String text;// 名称

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}
	public static class Div {
		Div2 div;

		public Div2 getDiv() {
			return div;
		}

		public void setDiv(Div2 div) {
			this.div = div;
		}
		
	}
	public static class Div2 {
		@JacksonXmlProperty(isAttribute=true)
		String bigpicsrc;// 大图路径
		A a;
		public String getBigpicsrc() {
			return bigpicsrc;
		}
		public void setBigpicsrc(String bigpicsrc) {
			this.bigpicsrc = bigpicsrc;
		}
		public A getA() {
			return a;
		}
		public void setA(A a) {
			this.a = a;
		}
	}
	public static class A {
		Img img;

		public Img getImg() {
			return img;
		}

		public void setImg(Img img) {
			this.img = img;
		}
	}
	public static class Img {
		@JacksonXmlProperty(isAttribute=true)
		String src;// 小图路径

		public String getSrc() {
			return src;
		}

		public void setSrc(String src) {
			this.src = src;
		}
	}
	public Tr getTr() {
		return tr;
	}
	public void setTr(Tr tr) {
		this.tr = tr;
	}
}
